home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #3 / Amiga Plus CD - 2002 - No. 03.iso / AmigaPlus / AmigaOS / Aplus_Dev / AP-Website / links / admin / linkcheck_top.php < prev    next >
Encoding:
PHP Script  |  2002-10-28  |  1.9 KB  |  66 lines

  1. <?
  2. // *******************************************************************
  3. //  admin/linkcheck_main.php
  4. // *******************************************************************
  5.  
  6. include("../include/config.php");
  7. include("../include/functions.php");
  8.  
  9. include("../include/common.php");
  10. $language = $gl["Language"];
  11.  
  12. include("../include/lang/$language.php");
  13.  
  14. include("../include/session.php");
  15. session_start();
  16.  
  17. if(!isset($x)){    $x=0;}
  18.  
  19. if(!isset($many)){$many=10;}
  20.  
  21. ?>
  22.  
  23. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  24. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
  25. <html>
  26. <head>
  27. <title></title>
  28. <link rel = "stylesheet" type = "text/css" href = "style.css" />
  29. </head>
  30. <?=$top_body?>
  31. <table cellpadding="0" cellspacing="0" border="0" align="center">
  32. <tr><form method="post" action="linkcheck_main.php?<?=session_name()?>=<?=session_id()?>" target="linkcheck_main">
  33.     <td class="text">Select Range: <select class="small" name="start" 
  34.     onChange="window.open(this.options[this.selectedIndex].value,'linkcheck_main')">
  35.     <option selected="selected">Link ID Range</option><?
  36.         
  37.         $sql = sql_query("
  38.             select
  39.                 ID
  40.             from
  41.                 $tb_links
  42.         ");
  43.  
  44.         $count = sql_num_rows($sql);
  45.  
  46.         while($x<$count){
  47.             
  48.             echo "<option value=\"linkcheck_main.php?" . session_name() . "=";
  49.             echo session_id() . "&start=" . ($x+1);
  50.             echo "&many=" . $many . "\">" . ($x+1) . " - ";
  51.             
  52.             if(($x+$many)>$count){echo $count;} else {echo ($x+$many);}
  53.  
  54.             echo "</option>\n";
  55.             
  56.             $x=$x+$many;
  57.         }
  58.     ?>
  59.     </select></td></form>
  60.     <form method="post" action="linkcheck_top.php?<?=session_name()?>=<?=session_id()?>" target="linkcheck_top">
  61.     <td class="text">    Interval: <input class="small" type="text" name="many" value="<?=$many?>" size="4"><input class="button" type="submit" value="Rebuild Range"></td></form>
  62. </tr>
  63. </table>
  64. </body>
  65. </html>
  66.